<?php $this->_extends(Helper_Store::layout()); ?>
<?php $this->_block('title');?> <?=_L('member_center')?>  -  <?=$store['name']?> <?php $this->_endblock(); ?>
<?php $this->_block('contents'); ?>
<div class="MemberCenter">
  <div class="siteparttitle">
    <div class="title"></div>
    <div class="main">
      <div class="content">
        <div class="user"><?=_L('member/welcome')?>：<br />
          <strong><?=$customer['email']?></strong></div>
        <div class="info"> </div>
      </div>
    </div>
  </div>
  <div class="MemberSidebar">
     <?php $this->_element('customermenu'); ?>
  </div>
  <div class="MemberMain">
    <div style="margin-right:175px;">
      <h1 class="title"><?=_L('member/edit_profile')?></h1>
	  
	  <?php if(isset($error)):?>
<div class="notice">
	<?php foreach($error as $e=>$v):
			switch($e){
				case 'success': _L('member/edit_profile_successed'); break;
				case 'other': 
				default: echo _L('has_error'); break;
			}
		 endforeach;?>
</div>
<?php endif;?>

      <form method="post" action="" class='signform'>
  <div class="RegisterWrap">
    <div class="form">
	  
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <th><?=_L('email')?>：</th>
          <td><?=$customer['email']?></td>
        </tr>
        <tr>
          <th><?=_L('member/gender')?>：</th>
          <td><input type="radio" name="gender" value="m" <?php if($u['gender']=='m'){echo 'checked=true';}?> /><?=_L('member/male')?> &nbsp;&nbsp; <input type="radio" name="gender" value="f" <?php if($u['gender']=='f'){echo 'checked=true';}?> />  <?=_L('member/female')?> </td>
        </tr>
		
			  <tr>
                <th><em style="color:red">*</em> <?=_L('first_name')?>:</th>
                <td><input type="text" name="firstname" value="<?=$u['firstname']?>" size="20" />
                    </td>
              </tr>
              <tr>
                <th><em style="color:red">*</em> <?=_L('last_name')?>:</th>
                <td><input type="text" name="lastname" value="<?=$u['lastname']?>" size="20" />
                    </td>
              </tr>
			  <tr>
                <th> <?=_L('phone')?>:</th>
                <td><input type="text" name="phone" value="<?=$u['phone']?>" size="20" />
                    </td>
              </tr>
			  <tr>
                <th> <?=_L('company')?>:</th>
                <td><input type="text" name="company" value="<?=$u['company']?>" size="20" />
                    </td>
              </tr>
              <tr>
                <th>  <?=_L('street')?>:</th>
                <td> <input type="text" class="inputstyle _x_ipt" name="street1" value="<?=$u['street1']?>" size="40" />
				</td>
              </tr>
			  <tr>
                <th><?=_L('street')?> 2:</th>
                <td> <input type="text" class="inputstyle _x_ipt" name="street2" value="<?=$u['street2']?>" size="40" />
				</td>
              </tr>
              <tr>
                <th><?=_L('postalcode')?>：</th>
                <td><input type="text" name="postalcode" value="<?=$u['postalcode']?>" size="10" /></td>
              </tr>
              
			  
			  
              <tr>
                <th><?=_L('city')?>：</th>
                <td><input type="text" name="cityname" value="<?=$u['cityname']?>" size="20" /></td>
              </tr>
              <tr>
                <th><?=_L('province')?>：</th>
                <td><input type="text" name="stateorprovince" value="<?=$u['stateorprovince']?>" size="20" /></td>
              </tr>
			  <tr>
                <th><?=_L('country')?>：</th>
                <td id="checkout-select-area">
                  <?php Q::control('dropdownlist','country',array(
        "items"=>$country_array,
        'value'=>$u['country']
    ))->display()?>
                </td>
              </tr>
        <tr>
          <th></th>
          <td><input type="submit" value=" <?=_L('submit')?> " />
           </td>
        </tr>
      </table>
    </div>
  </div>
</form>
    </div>
  </div>
  <div class="clear"></div>
</div>
<div class="clear"></div>

<?php $this->_endblock('contents'); ?>
